<{$searchInfo}>
<{if $tabs}>
<ul class="GoodsSearchTabs">
  <li<{if $args.3 eq ''}> class="current"<{/if}>><a href="<{link args=$args arg3=''}>"><span><{t}>全部商品<{/t}></span></a>
  </li>
  <{section name=tabs loop=$tabs}> <li<{if is_numeric($args.3) && $args.3 eq $smarty.section.tabs.index}> class="current"<{/if}>><a href="<{link args=$args arg3=$smarty.section.tabs.index}>"><span><{$tabs[tabs].label}></span></a>
  </li>
  <{/section}>
  <li></li>
</ul>
<{/if}>
<div class="clear"></div>
<div class="GoodsSearchWrap">
  <form method="post" action="<{link ctl=site_search act=result app=b2c}>" id='selector-form'>
    <input type="hidden" name="filter" value="<{$args[1]}>" />
    <{if $cat_id}>
    <input type="hidden" name="cat_id" value="<{$cat_id}>">
    <{/if}>
    <div class="GoodsSelector division boxGray"> <{include file="site/gallery/selector/default.html"}> </div>
    <{if count($searchInput)>0}>
    <div class="GoodsSelector division boxGray">
      <div class="division clearfix"> <{foreach from=$searchInput item=prop key=key}>
        <div class="span-3">
          <h5><{$prop.name}></h5>
          <{input type=$prop.type name="p_{$key}[]" value=$prop.value options=$prop.options id="sel-prop-$key" style="width:100px"}> </div>
        <{/foreach}> </div>
      <div class="textcenter">
        <input type="submit" type="submit" value="<{t}>显示符合条件的商品<{/t}>" />
      </div>
    </div>
    <{/if}>
  </form>
  <script type='text/javascript'>
      var fixEmpeyPanel = (function(el){
         el.setStyle('display',el.get('text').clean().trim()?'block':'none');
         return arguments.callee;
      })($('selector-form'));

         if($('selector-form').style.display!='none'){
            $$('#selector-form .division').each(fixEmpeyPanel);
         }
      </script>
  <{if $searchtotal}>
  <p class="search_total">
    <!--<span class="flt"><{t}>首页 > 所有商品 > 品牌女装 > 女装T恤<{/t}></span>-->
    <{t}>总共找到<{/t}><span class="font-orange"><{$searchtotal}></span><{t}>个商品<{/t}>
     </p>
  <{/if}>
  <div class="title clearfix lh25" id='gallerybar' >
    <{if count($views)>1}>
       <div class="display-warp"> <!-- <span class="flt ml5 mr5"><{t}>查看<{/t}></span> -->
              <div class="listmode clearfix"> <{foreach from=$views key=label item=view}>
                <{if $curView==$view.6}> <a class="list-<{$view.6}> current"><i></i><span><{$label}></span></a> <{else}> <a href="<{link app=b2c ctl=site_gallery act=index args=$view }>?scontent=<{$args1}>" title="<{$label}>" class="list-<{$view.6}>"><i></i><span><{$label}></span></a> <{/if}>
                <{/foreach}> </div>
            </div>
          <{/if}>

          <span class='filtmode fl' align="center"> <{t}>排序方式:<{/t}>
              <select class="border-all" onchange="if(this.value!='_')window.location=this.value">
                <optgroup label="<{t}>排序<{/t}>"> <{foreach from=$orderBy item=item key=order}> <option value="<{link link app=b2c ctl=site_gallery act=index args=$args2 arg2=$order}>?scontent=<{$args1}>"<{if $order eq $args.2}> class="selected" selected="selected"<{/if}>><{$item.label}>
                </option>
                <{/foreach}> </optgroup>
                <{*

                <optgroup label="<{t}>显示<{/t}>"> <{foreach from=$views key=label item=view}> <option value="<{link app=b2c ctl=site_gallery  act=$view  args=$args}>"<{if $curView==$view}> class="selected"<{/if}>><{$label}>
                </option>
                <{/foreach}> </optgroup>
                *}>
              </select>
            </span>

          <div class="listorder fl pl5 pr5">
             <{if $args.2 == 4}>
	  <a class="list-desc-on" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=5}>"><i></i><span><{t}>价格<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=9}>"><i></i><span><{t}>销量<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=7}>"><i></i><span><{t}>人气<{/t}></span></a>
	  <{elseif $args.2 == 5}>
	  <a class="list-asc-on" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=4}>"><i></i><span><{t}>价格<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=9}>"><i></i><span><{t}>销量<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=7}>"><i></i><span><{t}>人气<{/t}></span></a>
	  <{elseif $args.2 == 7}>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=4}>"><i></i><span><{t}>价格<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=9}>"><i></i><span><{t}>销量<{/t}></span></a>
	  <a class="list-desc-on"><i></i><span><{t}>人气<{/t}></span></a>
	  <{elseif $args.2 == 9}>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=4}>"><i></i><span><{t}>价格<{/t}></span></a>
	  <a class="list-desc-on"><i></i><span><{t}>销量<{/t}></span> </a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=7}>"><i></i><span><{t}>人气<{/t}></span></a>
	  <{else}>
	  <a class="list-asc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=5}>"><i></i><span><{t}>价格<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=9}>"><i></i><span><{t}>销量<{/t}></span></a>
	  <a class="list-desc" href="<{link app=b2c ctl=site_gallery act=index args=$args arg2=7}>"><i></i><span><{t}>人气<{/t}></span></a>
	  <{/if}>
             </div>
          <div class="page"><{pagers data=$pager type=mini}> </div>
      </div>
  <{if !count($products)}>
  <{if $emtpy_info}>
  <div class="feed-back m30" >
    <div class="lineheight-free"><{$emtpy_info}></div>
    <{else}>
    <h1 class="error" style=""><{t}>非常抱歉，没有找到相关商品<{/t}></h1>
    <p style="margin:15px 1em;"><strong><{t}>建议：<{/t}></strong><br />
      <{t}>适当缩短您的关键词或更改关键词后重新搜索。<{/t}></p>

  <div class="w200 ma"><a href="javascript:history.back(1)" class="btn-a"><span><{t}>返回上一页<{/t}></span></a><a href="./" class="btn-a pl20 ml10"><span><{t}>返回首页<{/t}></span></a></div>
  <{/if}><{/if}>
  <{include file=$_PDT_LST_TPL}>
  <{pagers data=$pager}> </div>
<script>
window.addEvent('domready', function(){
	new DataLazyLoad({lazyDataType:'img',img:'lazyload'});
try{
/*关键字高亮*/
(function(replace_str){
    var replace=replace_str.split("+");
    if(replace.length){
      $$('.entry-title').each(function(r){
        for(i=0;i<replace.length;i++){
          if(replace[i]){
            var reg=new RegExp("("+replace[i].escapeRegExp()+")","gi");
            r.set('text',r.get('text').replace(reg,function(){
              return "{0}"+arguments[1]+"{1}";
            }));
          }
        }
        r.set('html',r.get('text').format("<font color=red>","</font>"));
      });
    }
  })('<{$search_array}>');
}catch(e){}
var gallerybar = $('gallerybar');
var gallerybarSize = gallerybar.getSize();
var gallerybarPos  = gallerybar.getPosition();
var fixedStart = gallerybarSize.y+gallerybarPos.y;

var fixGalleryBar = function(){
    if(fixedStart<this.getScrollTop()){
     if(Browser.ie6) {gallerybar.setStyles({'width':gallerybarSize.x,'position':'absolute','top':this.getScrollTop(),'border':'1px solid #000'})}
     else{gallerybar.addClass('fixed').setStyles({'width':gallerybarSize.x})}
    }else{
     if(Browser.ie6) {gallerybar.setStyles({'position':'fixed','border':'0px'})};
         gallerybar.removeClass('fixed').setStyles({'width':'auto'});
    }
};

window.addEvents({
   'resize':fixGalleryBar,
   'scroll':fixGalleryBar
});


});


</script>
<!--<{script src='goodscupcake.js' app='b2c'}>-->